#include "CommandGroup.h"
#include "MaMap.h"
void CommandGroup::push(ref_ptr<CommandMove> command){
	this->vec.push_back(command);
}
void CommandGroup::executeAll(){
	unsigned int i;
	for(i = 0;i<this->vec.size();i++){
		this->vec[i]->execute();
	}
}

void CommandGroup::undoAll(){
	unsigned int i;
	for(i = 0;i <this->vec.size();i++){
		this->vec[i]->undo();
	}
}